/*package cn.the.angry.tests;

import java.awt.Canvas;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.GraphicsConfiguration;
import java.awt.HeadlessException;
import java.awt.RenderingHints;

import java.awt.Image;
import java.awt.Transparency;
import java.awt.image.BufferedImage;

import javax.swing.JFrame;

import cn.the.angry.model.IDs;
import cn.the.angry.resourcemanager.ResourceManager;

public class AAAMainTest extends JFrame {

	private static final int WIDTH = 1300;
	private static final int HEIGHT = 800;

	//private final Image b = ResourceManager.getCursorSheet();

	//private final Image b = ResourceManager.getInGameBirds();

	
	public AAAMainTest() throws HeadlessException {
		super();
		
		this.setSize(new Dimension(WIDTH, HEIGHT));
		this.setTitle("SplashScreen");
		this.setResizable(false);
		this.setLocationRelativeTo(null);
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		//this.setUndecorated(true);
		

		//final BufferedImage bi = new BufferedImage(b.getWidth(null), b.getHeight(null), BufferedImage.TYPE_INT_ARGB);//(BufferedImage)ResourceManager.getCursorSheet();
		//bi.createGraphics().drawImage(b, 0, 0, null);

		//final BufferedImage bi = new BufferedImage(b.getWidth(null), b.getHeight(null), BufferedImage.TYPE_INT_ARGB);//(BufferedImage)ResourceManager.getCursorSheet();
		//Graphics2D g2d=bi.createGraphics();
		//final BufferedImage tbi=g2d.getDeviceConfiguration().createCompatibleImage(b.getWidth(null), b.getHeight(null), Transparency.TRANSLUCENT);
		//g2d.dispose();
		//g2d=tbi.createGraphics();
		//g2d.drawImage(b, 0, 0, null);

		
		Canvas canvas = new Canvas(){
			@Override
			public void paint(Graphics g){
				Graphics2D g2 = (Graphics2D)g;
				g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
				
				
				g.drawImage(bi.getSubimage(0, 0, 42, 55), 0, 0, null);
				g.drawImage(bi.getSubimage(42, 0, 42, 55), 0, 55, null);
				g.drawImage(bi.getSubimage(42*2, 0, 42, 55), 0, 55*2, null);
				g.drawImage(bi.getSubimage(42*3, 0, 42, 55), 0, 55*3, null);
				
				
				final int WIDTH=125;
				final int HEIGHT=155;
				final int OFFSET=40;
				g.drawImage(bi.getSubimage(OFFSET, 0, WIDTH, HEIGHT), 0, 0, null);
				g.drawImage(bi.getSubimage(OFFSET, HEIGHT, WIDTH, HEIGHT), WIDTH, 0, null);
				g.drawImage(bi.getSubimage(OFFSET, HEIGHT*2, WIDTH, HEIGHT), WIDTH*2, 0, null);
				g.drawImage(bi.getSubimage(OFFSET, HEIGHT*3, WIDTH, HEIGHT), WIDTH*3, 0, null);
				g.drawImage(bi.getSubimage(OFFSET, HEIGHT*4, WIDTH, HEIGHT), WIDTH*4, 0, null);
				g.drawImage(bi.getSubimage(OFFSET, HEIGHT*5, WIDTH, HEIGHT), WIDTH*5, 0, null);
				
				
				final int WIDTH=125;
				final int FIRST_HEIGHT=155;
				final int OFFSET=170;
				g.drawImage(bi.getSubimage(OFFSET, 0, WIDTH, FIRST_HEIGHT), 0, 0, null);
				
				final int SECOND_HEIGHT=123;
				g.drawImage(bi.getSubimage(OFFSET, FIRST_HEIGHT, WIDTH, SECOND_HEIGHT), WIDTH, 0, null);
				g.drawImage(bi.getSubimage(OFFSET, FIRST_HEIGHT+SECOND_HEIGHT, WIDTH, SECOND_HEIGHT), WIDTH*2, 0, null);
				
				final int THIRD_HEIGHT=113;
				g.drawImage(bi.getSubimage(OFFSET, FIRST_HEIGHT+SECOND_HEIGHT*2, WIDTH, THIRD_HEIGHT), WIDTH*3, 0, null);
				g.drawImage(bi.getSubimage(OFFSET, FIRST_HEIGHT+SECOND_HEIGHT*2+THIRD_HEIGHT, WIDTH, THIRD_HEIGHT), WIDTH*4, 0, null);
				
				final int FOURTH_HEIGHT=103;
				g.drawImage(bi.getSubimage(OFFSET, FIRST_HEIGHT+SECOND_HEIGHT*2+THIRD_HEIGHT*2, WIDTH, FOURTH_HEIGHT), WIDTH*5, 0, null);
				g.drawImage(bi.getSubimage(OFFSET, FIRST_HEIGHT+SECOND_HEIGHT*2+THIRD_HEIGHT*2+FOURTH_HEIGHT, WIDTH, FOURTH_HEIGHT), WIDTH*6, 0, null);
				g.drawImage(bi.getSubimage(OFFSET, FIRST_HEIGHT+SECOND_HEIGHT*2+THIRD_HEIGHT*2+FOURTH_HEIGHT*2, WIDTH, FOURTH_HEIGHT), WIDTH*7, 0, null);
				
				
				final int WIDTH=127;
				final int HEIGHT=155;
				final int OFFSET=297;
				g.drawImage(bi.getSubimage(OFFSET, 0, WIDTH, HEIGHT), 0, 0, null);
				g.drawImage(bi.getSubimage(OFFSET+WIDTH, 0, WIDTH, HEIGHT), 0, HEIGHT, null);
				
				
				final int FIRST_WIDTH=145;
				final int HEIGHT=155;
				final int OFFSET=551;
				g.drawImage(bi.getSubimage(OFFSET, 0, FIRST_WIDTH, HEIGHT), 0, 0, null);
				
				final int SECOND_WIDTH=136;
				g.drawImage(bi.getSubimage(OFFSET+FIRST_WIDTH, 0, SECOND_WIDTH, HEIGHT), 0, HEIGHT, null);
				
				final int SLINESHOT_WIDTH=44;
				final int THIRD_WIDTH=130;
				g.drawImage(bi.getSubimage(OFFSET+FIRST_WIDTH+SECOND_WIDTH+SLINESHOT_WIDTH, 0, THIRD_WIDTH, HEIGHT), 0, HEIGHT*2, null);
				
				
				final int SECOND_WIDTH=44;
				final int SECOND_HEIGHT=130;
				final int OFFSET=832;
				g.drawImage(bi.getSubimage(OFFSET, 0, SECOND_WIDTH, SECOND_HEIGHT), 0, 0, null);
				
				final int FIRST_WIDTH=40;
				final int FIRST_HEIGHT=200;
				g.drawImage(bi.getSubimage(0, 0, FIRST_WIDTH, FIRST_HEIGHT), SECOND_WIDTH, 0, null);
				
				
				final int LEFT_OFFSET=295;
				final int TOP_OFFSET=155;
				final int WIDTH=114;
				final int HEIGHT=100;
				
				final int BIRD_WIDTH=95;
				final int BIRD_HEIGHT=105;
				g.drawImage(bi.getSubimage(LEFT_OFFSET, TOP_OFFSET, WIDTH, HEIGHT), 0, 0, null);
				g.drawImage(bi.getSubimage(LEFT_OFFSET+WIDTH, TOP_OFFSET, WIDTH, HEIGHT), 0, HEIGHT, null);
				g.drawImage(bi.getSubimage(LEFT_OFFSET+WIDTH*2, TOP_OFFSET, WIDTH, HEIGHT), 0, HEIGHT*2, null);
				g.drawImage(bi.getSubimage(LEFT_OFFSET+WIDTH*3, TOP_OFFSET, BIRD_WIDTH, BIRD_HEIGHT), 0, HEIGHT*3, null);
				g.drawImage(bi.getSubimage(LEFT_OFFSET+WIDTH*3+BIRD_WIDTH, TOP_OFFSET, WIDTH, HEIGHT), 0, HEIGHT*3+BIRD_HEIGHT, null);
				g.drawImage(bi.getSubimage(LEFT_OFFSET+WIDTH*4+BIRD_WIDTH, TOP_OFFSET, WIDTH, HEIGHT), 0, HEIGHT*4+BIRD_HEIGHT, null);
				
				final int BIRD2_WIDTH=80;
				
				g.drawImage(bi.getSubimage(LEFT_OFFSET+WIDTH*5+BIRD_WIDTH, TOP_OFFSET, BIRD2_WIDTH, HEIGHT), 0, HEIGHT*5+BIRD_HEIGHT, null);
				
				
				final int LEFT_OFFSET=295;
				final int TOP_OFFSET=255;
				final int FIRST_WIDTH=114;
				final int SECOND_WIDTH=101;
				final int BIRD_WIDTH=100;
				final int HEIGHT=100;
<<<<<<< .mine
				//g.drawImage(bi.getSubimage(LEFT_OFFSET, TOP_OFFSET, FIRST_WIDTH, HEIGHT), 0, 0, null);
				//g.drawImage(bi.getSubimage(LEFT_OFFSET+FIRST_WIDTH, TOP_OFFSET, FIRST_WIDTH, HEIGHT), 0, HEIGHT, null);
				//g.drawImage(bi.getSubimage(LEFT_OFFSET+FIRST_WIDTH*2, TOP_OFFSET, FIRST_WIDTH, HEIGHT), 0, HEIGHT*2, null);
				//g.drawImage(bi.getSubimage(LEFT_OFFSET+FIRST_WIDTH*3, TOP_OFFSET, FIRST_WIDTH, HEIGHT), 0, HEIGHT*3, null);
=======
				g.drawImage(bi.getSubimage(LEFT_OFFSET, TOP_OFFSET, FIRST_WIDTH, HEIGHT), 0, 0, null);
				g.drawImage(bi.getSubimage(LEFT_OFFSET+FIRST_WIDTH, TOP_OFFSET, SECOND_WIDTH, HEIGHT), 0, HEIGHT, null);
				g.drawImage(bi.getSubimage(LEFT_OFFSET+FIRST_WIDTH+SECOND_WIDTH, TOP_OFFSET, SECOND_WIDTH, HEIGHT), 0, HEIGHT*2, null);
				g.drawImage(bi.getSubimage(LEFT_OFFSET+FIRST_WIDTH+SECOND_WIDTH*2, TOP_OFFSET, SECOND_WIDTH, HEIGHT), 0, HEIGHT*3, null);
				g.drawImage(bi.getSubimage(LEFT_OFFSET+FIRST_WIDTH+SECOND_WIDTH*3, TOP_OFFSET, SECOND_WIDTH, HEIGHT), 0, HEIGHT*4, null);
				g.drawImage(bi.getSubimage(LEFT_OFFSET+FIRST_WIDTH+SECOND_WIDTH*3+BIRD_WIDTH, TOP_OFFSET, BIRD_WIDTH, HEIGHT), 0, HEIGHT*5, null);
				g.drawImage(bi.getSubimage(LEFT_OFFSET+FIRST_WIDTH+SECOND_WIDTH*3+BIRD_WIDTH*2, TOP_OFFSET, BIRD_WIDTH, HEIGHT), 0, HEIGHT*6, null);
				
				
				final int LEFT_OFFSET=295;
				final int TOP_OFFSET=355;
				final int WIDTH=101;
				final int HEIGHT=99;
				g.drawImage(tbi.getSubimage(LEFT_OFFSET, TOP_OFFSET, WIDTH, HEIGHT), 0, 0, null);
				g.drawImage(tbi.getSubimage(LEFT_OFFSET, TOP_OFFSET+HEIGHT, WIDTH, HEIGHT), WIDTH, 0, null);
				g.drawImage(tbi.getSubimage(LEFT_OFFSET, TOP_OFFSET+HEIGHT*2, WIDTH, HEIGHT), WIDTH*2, 0, null);
				g.drawImage(tbi.getSubimage(LEFT_OFFSET, TOP_OFFSET+HEIGHT*3, WIDTH, HEIGHT), WIDTH*3, 0, null);
				g.drawImage(tbi.getSubimage(LEFT_OFFSET, TOP_OFFSET+HEIGHT*4, WIDTH, HEIGHT), WIDTH*4, 0, null);
				g.drawImage(tbi.getSubimage(LEFT_OFFSET, TOP_OFFSET+HEIGHT*5, WIDTH, HEIGHT), WIDTH*5, 0, null);
				


				//g.drawImage(ResourceManager.getSlingshotImage(),0,0,null);

				
				int width=0;
				final Image[] pidKingImages=ResourceManager.getPigKingImages();
				for(int i=0;i<9;++i)
				{
					g.drawImage(pidKingImages[i], width, 0, null);
					width+=pidKingImages[i].getWidth(null);
				}
				
				int width=0;
				final Image[] mustachePigImages=ResourceManager.getMustachePigImages();
				for(int i=0;i<9;++i)
				{
					g.drawImage(mustachePigImages[i], width, 0, null);
					width+=mustachePigImages[i].getWidth(null);
				}
				
				
				int width=0;
				final Image[] normalPigImages=ResourceManager.getNormalPigImages();
				for(int i=0;i<9;++i)
				{
					g.drawImage(normalPigImages[i], width, 0, null);
					width+=normalPigImages[i].getWidth(null);
				}
				
				
				int width=0;
				final Image[] largeRedBirdImages=ResourceManager.getLargeRedBirdImages();
				for(int i=0;i<3;++i)
				{
					g.drawImage(largeRedBirdImages[i], width, 0, null);
					width+=largeRedBirdImages[i].getWidth(null);
				}
				
				
				int width=0;
				final Image[] largeWoodBallImages=ResourceManager.getLargeWoodBallImages();
				for(int i=0;i<4;++i)
				{
					g.drawImage(largeWoodBallImages[i], width, 0, null);
					width+=largeWoodBallImages[i].getWidth(null);
				}
				
				
				int width=0;
				final Image[] largeWoodRectangleImages=ResourceManager.getLargeWoodRectangleImages();
				for(int i=0;i<4;++i)
				{
					g.drawImage(largeWoodRectangleImages[i], width, 0, null);
					width+=largeWoodRectangleImages[i].getWidth(null);
				}
				
				
				int width=0;
				final Image[] longWoodBattenImages=ResourceManager.getLongWoodBattenImages();
				for(int i=0;i<4;++i)
				{
					g.drawImage(longWoodBattenImages[i], width, 0, null);
					width+=longWoodBattenImages[i].getWidth(null);
				}
				
				
				int width=0;
				final Image[] middleWoodBattenImages=ResourceManager.getMiddleWoodBattenImages();
				for(int i=0;i<4;++i)
				{
					g.drawImage(middleWoodBattenImages[i], width, 0, null);
					width+=middleWoodBattenImages[i].getWidth(null);
				}
				
				
				int width=0;
				final Image[] shortWoodBattenImages=ResourceManager.getShortWoodBattenImages();
				for(int i=0;i<4;++i)
				{
					g.drawImage(shortWoodBattenImages[i], width, 0, null);
					width+=shortWoodBattenImages[i].getWidth(null);
				}
				
				
				g.drawImage(ResourceManager.getParallaxBackgroundImage(), 0, 0, null);
				g.drawImage(ResourceManager.getParallaxGreenGroundImage(), 0, 0, null);
				g.drawImage(ResourceManager.getParallaxGrassImage(), 0, 0, null);
				
				
				g.drawImage(ResourceManager.getGroundImage(), 0, 0, null);
				
				
				int width=0;
				final Image[] middleWoodSquareImages=ResourceManager.getMiddleWoodSquareImages();
				for(int i=0;i<4;++i)
				{
					g.drawImage(middleWoodSquareImages[i], width, 0, null);
					width+=middleWoodSquareImages[i].getWidth(null);
				}
				
				//g.drawImage(b, 0, 0, b.getWidth(null), b.getHeight(null), null);

				//g.drawImage(ResourceManager.getTest(), 0, 0, null);
				//g2.drawImage(ResourceManager.getImageClip(IDs.INGAME_BIRDS_1, 170, 625, 125, 100), 0, 0, null);
				//g2.drawImage(ResourceManager.getSlingshotImage(), 0, 0,null);
				g2.dispose();
				//g2.drawImage(ResourceManager.getImageClip(IDs.INGAME_BIRDS_1, 170, 625, 125, 100), 0, 0, null);
				//g2.dispose();
			}
		};
		
		Container contentPane = getContentPane();
		contentPane.add(canvas);
	}

	public AAAMainTest(GraphicsConfiguration gc) {
		super(gc);
	}

	public AAAMainTest(String title) throws HeadlessException {
		super(title);
		
	}

	public AAAMainTest(String title, GraphicsConfiguration gc) {
		super(title, gc);
		
	}

	*//**
	 * @param args
	 *//*
	public static void main(String[] args) {
		AAAMainTest main = new AAAMainTest();
		main.setVisible(true);
	}

}
*/